package hentai.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@AllArgsConstructor
// 为Category 类加上@Component注解，即表明此类是bean
@Component("c")
public class Category {
    private int id;
    private String name = "category 1";
}
